<h2>Update Entry</h2>


<table cellpadding="1" class="datatable">
<?php echo form_open('blogadmin/update_entry');?>
<?php foreach ($record as $field){?>

  <tr>
  	<th>Entry Name<input type="hidden" id="entry_id" name="entry_id" value="<?php echo $field->entry_id;?>"></input></th>
  	
  	<td><?php echo form_input('entry_name',$field->entry_name);?></td>
  </tr>
  <tr>
  <td colspan="2"><textarea cols="77" rows="20" id="entry_content" name="entry_content"><?php echo $field->entry_content?></textarea></td>
  	
  </tr>
  <tr>
    <th>Entry Basename</th> 
    <td><?php echo form_input('entry_basename',$field->entry_basename);?></td>
  </tr>
  <tr>
    <th>Entry Author</th>
    <td><?php echo form_input('entry_author',$field->entry_author);?></td>
  </tr>
  <tr>
    <th>Entry Date</th>
    <td><?php echo form_input('entry_date', $field->entry_date);?></td>
  </tr>
  <tr>
    <th>Entry Parent Category</th>
    <td>
    	<select	id="entry_category_parent" name="entry_category_parent">
    		<option value="1" selected="selected">NONE</option>
    		<?php foreach ($records as $rows){?>
    		<option value="<?php echo $rows->category_id;?>"><?php echo $rows->category_name;?></option>
    		<?php }?>
    	</select>
    </td>
   
  </tr>
   <tr>
   		<td colspan="2"><?php echo form_submit('submit','Update Entry');?></td>
   </tr>
   <?php }?>
<?php echo form_close();?>
</table>



